<template>
  <div class="mixin-components-container">
    <el-row>
      <el-card class="box-card" shadow="always">
        <div class="clearfix" style="font-size: 18px; width: auto; text-align:center;">
          <span><b>欢迎使用移动工卡系统</b></span>
        </div>
      </el-card>
    </el-row>

    <el-row :gutter="20" style="margin-top:20px;" shadow="always">
      <el-col>
        <el-card :body-style="{ padding: '0px' }">
          <div class="clearfix">
            <img :src="randomImg()" class="image">
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  methods: {
    randomImg() {
      const n = Math.floor(Math.random() * 5 + 1)
      return 'static/' + n + '.jpg'
    }
  }
}
</script>

<style scoped>
.mixin-components-container {
  background-color: #f0f2f5;
  padding: 30px;
  min-height: calc(100vh - 84px);
}
.component-item{
  min-height: 100px;
}

.image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
}
</style>
